<%@ page import="top.dingyingying.study.javawebjdbc.dao.TBClassDAO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除班级</title>
</head>
<body>

<%--先完成删除班级的功能--%>
<%
    request.setCharacterEncoding("UTF-8");
    String sid = request.getParameter("id");
//    转换数字内容的字符串为数字
    Integer id = Integer.parseInt(sid);
//    删除班级
    int result = TBClassDAO.delete(id);

%>

要删除的id为:<%=sid%>

<script>
    alert("删除成功");
    location.href = "list.jsp";
</script>


</body>
</html>
